package KnightsTour;

/**
 *
 * @author Scott Robinson
 */
public abstract class ChessPiece {
    
    private final ChessBoard cb;
    private int row, column; // row's and columns
    
    public ChessPiece (ChessBoard cb , int row, int column) {
        this.cb = cb;
        this.row = row;
        this.column = column;
    }

    protected ChessBoard getCb() {
        return cb;
    }

    public int getRow(){
        return row;
    }

    protected void setRow(int row) {
        this.row = row;
    }

    protected void setColumn(int column) {
        this.column = column;
    }
    
    public int getColumn () {
        return column;
    }

    public abstract boolean move (int row, int column);

    public abstract boolean hasMoreMoves ();

}
